
#ifndef MODULE_EXPORT_H
#define MODULE_EXPORT_H

#if __cplusplus
extern "C" {
#endif

void ChipInit_Intr();
void ChipInit_Timer();



typedef void (*pfnIntrHdl)(BYTE bMain, BYTE bSysCtrl, BYTE bIntrType);
BOOL Intr_RegHdl(BYTE bMain, BYTE bSysCtrl, pfnIntrHdl pfnHdl);
BOOL Intr_EnHdl(BYTE bMain, BYTE bSysCtrl, BYTE bIntrType, BOOL fEn);


BOOL SVC_RegHdl(DWORD dwSvcCode, DWORD dwArgNumb, void* pfn);
void SVC_Call_ArgNumb_0(DWORD dwSvcCode);
void SVC_Call_ArgNumb_1(DWORD dwSvcCode, DWORD dwArg0);
void SVC_Call_ArgNumb_2(DWORD dwSvcCode, DWORD dwArg0, DWORD dwArg1);
void SVC_Call_ArgNumb_3(DWORD dwSvcCode, DWORD dwArg0, DWORD dwArg1, DWORD dwArg2);


typedef void (*pfnTimerHdl)(void* pv);
BOOL Timer_Start(BYTE bTimer, BYTE bIntrType, BOOL fStart, DWORD dwTimeUs, pfnTimerHdl pfnHdl, void* pv);



void Power_Off();
void Power_Idle();



#if __cplusplus
}
#endif
#endif	//#ifndef MODULE_EXPORT_H


